package com.gscitysfy.cus.drain.modules.command.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author jiang_wen
 * @Date 2022/10/20 19:07
 * @Description TODO
 */
@Data
public abstract class CommonEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Long cmKid;

    @TableField(value = "cm_creator", fill = FieldFill.INSERT)
    private String cmCreator;

    @TableField(value = "cm_modifier", fill = FieldFill.INSERT_UPDATE)
    private String cmModifier;

    @TableField(value = "cm_orgflag")
    private String cmOrgflag;

    @TableField(value = "cm_regflag")
    private Long cmRegflag;

    @TableField(value = "cm_tenantid")
    private String cmTenantid;

    @TableField(value = "cm_addtime", fill = FieldFill.INSERT)
    private Date cmAddtime;

    @TableField(value = "cm_uptime", fill = FieldFill.INSERT_UPDATE)
    private Date cmUptime;

    @TableField(value = "cm_version")
//    @Version
    private Long cmVersion;

    @TableField(value = "cm_usable", fill = FieldFill.INSERT)
    private Boolean cmUsable;
}
